From: Christian Marangi Date: Tue, 11 Nov 2025 22:53:50 +0000 (+0100) Subject: oqs-provider: add quantum-safe cryptography (QSC) provider X-Git-Url: http://git.openwrt.org/%22https:/collectd.org//%22http:/www.crowdsec.net/%22/%22https:/collectd.org/%22http:/www.crowdsec.net/%22?a=commitdiff_plain;h=a0ddc9055f876f8b1c889242dbdbbfbf4b94fc0a;p=feed%2Fpackages.git oqs-provider: add quantum-safe cryptography (QSC) provider Add libopenssl provider of quantum-safe cryptography (QSC) library. Tested-by: Eneas U de Queiroz Signed-off-by: Christian Marangi --- diff --git a/libs/oqs-provider/Makefile b/libs/oqs-provider/Makefile new file mode 100644 index 0000000000..2764c98009 --- /dev/null +++ b/libs/oqs-provider/Makefile @@ -0,0 +1,44 @@ +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +include $(TOPDIR)/rules.mk +include $(INCLUDE_DIR)/openssl-module.mk + +PKG_NAME:=libopenssl-oqsprovider +PKG_VERSION:=0.10.0 +PKG_RELEASE:=1 + +PKG_SOURCE_PROTO:=git +PKG_SOURCE_URL:=https://github.com/open-quantum-safe/oqs-provider.git +PKG_SOURCE_VERSION:=f076e91faab88871ff1973db0287cc6e4b94c4b0 +PKG_MIRROR_HASH:=cf8fcc4b1cd8fc914bc7948c35666769d5f4a1ca40a36c049f116d6e216b3f82 + +PKG_MAINTAINER:=Christian Marangi +PKG_LICENSE:=MIT +PKG_LICENSE_FILES:=LICENSE.txt + +include $(INCLUDE_DIR)/package.mk +include $(INCLUDE_DIR)/cmake.mk + +$(eval $(call Package/openssl/add-provider,oqsprovider)) +define Package/libopenssl-oqsprovider + $(call Package/openssl/module/Default) + TITLE:=Open Quantum Safe provider for OpenSSL (3.x) + DEPENDS+=+liboqs + URL:=https://openquantumsafe.org/ +endef + +define Package/libopenssl-oqsprovider/description + This enable quantum-safe cryptography (QSC) in a standard OpenSSL (3.x) + distribution by way of implementing a single shared library, the + OQS provider. +endef + +CMAKE_OPTIONS += \ + -DBUILD_SHARED_LIBS=ON \ + -DBUILD_TESTING=OFF \ + -DOPENSSL_MODULES_PATH=/usr/lib/$(MODULES_DIR) + +$(eval $(call BuildPackage,libopenssl-oqsprovider)) diff --git a/libs/oqs-provider/files/oqsprovider.cnf b/libs/oqs-provider/files/oqsprovider.cnf new file mode 100644 index 0000000000..10734d67d0 --- /dev/null +++ b/libs/oqs-provider/files/oqsprovider.cnf @@ -0,0 +1,3 @@ +[oqsprovider_sect] +activate = 1 +